package day05_AnonymousInnerClassAndLambda;

public class InnerClass_privateAndStatic {
    public static void main(String[] args) {
        //For private Inner1
        Outer1 outer1=new Outer1();
        outer1.method();

        System.out.println("-----------");
        //For Static Inner2
        Outer2.Inner2 oi2=new Outer2.Inner2();
        oi2.show2();
        Outer2.Inner2.method();

    }
}
class Outer1{
    private class Inner1{
        public void show1(){
            System.out.println("Private Inner Show1()");
        }
    }

    public void method(){
        Inner1 inner1=new Inner1();
        inner1.show1();
    }
}

class Outer2{
    static class Inner2{
        public void show2(){
            System.out.println("Static Inner Show2()");
        }

        public static void method(){
            System.out.println("Inner2 method()");
        }
    }
}
